package com.yulinlin.authorization.modules.admin.entity;

import com.yulinlin.common.domain.vo.SuperVo;
import com.yulinlin.data.core.anno.JoinQuery;
import com.yulinlin.data.core.event.ISelectEvent;
import lombok.Data;

import java.util.List;

/**
 * 这是rbac权限详情对象
 */
@Data
public class SysUserDetailsDto extends SuperVo implements ISelectEvent {
    public SysUserDetailsDto(SysUserEntity sysUser) {
        this.sysUser = sysUser;
    }


    //使用用户名，查询用户对象

    private SysUserEntity sysUser;


    //查出用户后，使用角色列表id查出角色列表对象
    @JoinQuery(value = "sysUser.sysRoleIds")
    private List<SysRoleEntity> roleList;


    @JoinQuery(value = "roleList.data")
    private List<SysElementEntity> sysElementList;


    @Override
    public void selectFinishEvent() {


        int a = 0;

    }
}